BBBBuuuuttttttttoooonnnn----1111>>>> is equivalent to <<<<BBBBuuuuttttttttoooonnnn----1111>>>><<<<BBBBuuuuttttttttoooonnnn----1111>>>> with the extra time and
space requirement.
EEEEVVVVEEEENNNNTTTT TTTTYYYYPPPPEEEESSSS
The _t_y_p_e field may be any of the standard X event types, with a few extra
abbreviations. Below is a list of all the valid types; where two names
For events other than these, the substituted string is undefined.
%%%%ffff The _f_o_c_u_s field from the event (0000 or 1111). Valid only for EEEEnnnntttteeeerrrr and
LLLLeeeeaaaavvvveeee events.
%%%%hhhh The _h_e_i_g_h_t field from the event. Valid only for CCCCoooonnnnffffiiiigggguuuurrrreeee, EEEExxxxppppoooosssseeee,
and GGGGrrrraaaapppphhhhiiiiccccssssEEEExxxxppppoooosssseeee events.
%%%%kkkk The _k_e_y_c_o_d_e field from the event. Valid only for KKKKeeeeyyyyPPPPrrrreeeessssssss and
KKKKeeeeyyyyRRRReeeelllleeeeaaaasssseeee events.
%%%%mmmm The _m_o_d_e field from the event. The substituted string is one of
NNNNoooottttiiiiffffyyyyNNNNoooorrrrmmmmaaaallll, NNNNoooottttiiiiffffyyyyGGGGrrrraaaabbbb, NNNNoooottttiiiiffffyyyyUUUUnnnnggggrrrraaaabbbb, or NNNNoooottttiiiiffffyyyyWWWWhhhhiiiilllleeeeGGGGrrrraaaabbbbbbbbeeeedddd.
Valid only for EEEEnnnntttteeeerrrrWWWWiiiinnnnddddoooowwww, FFFFooooccccuuuussssIIIInnnn, FFFFooooccccuuuussssOOOOuuuutttt, and LLLLeeeeaaaavvvveeeeWWWWiiiinnnnddddoooowwww
events.
%%%%oooo The _o_v_e_r_r_i_d_e__r_e_d_i_r_e_c_t field from the event. Valid only for MMMMaaaapppp,
RRRReeeeppppaaaarrrreeeennnntttt, and CCCCoooonnnnffffiiiigggguuuurrrreeee events.
%%%%pppp The _p_l_a_c_e field from the event, substituted as one of the strings
PPPPllllaaaacccceeeeOOOOnnnnTTTToooopppp or PPPPllllaaaacccceeeeOOOOnnnnBBBBoooottttttttoooommmm. Valid only for CCCCiiiirrrrccccuuuullllaaaatttteeee events.
%%%%ssss The _s_t_a_t_e field from the event. For BBBBuuuuttttttttoooonnnnPPPPrrrreeeessssssss, BBBBuuuuttttttttoooonnnnRRRReeeelllleeeeaaaasssseeee,
EEEEnnnntttteeeerrrr, KKKKeeeeyyyyPPPPrrrreeeessssssss, KKKKeeeeyyyyRRRReeeelllleeeeaaaasssseeee, LLLLeeeeaaaavvvveeee, and MMMMoooottttiiiioooonnnn events, a decimal |
string is substituted. For VVVViiiissssiiiibbbbiiiilllliiiittttyyyy, one of the strings
VVVViiiissssiiiibbbbiiiilllliiiittttyyyyUUUUnnnnoooobbbbssssccccuuuurrrreeeedddd, VVVViiiissssiiiibbbbiiiilllliiiittttyyyyPPPPaaaarrrrttttiiiiaaaallllllllyyyyOOOObbbbssssccccuuuurrrreeeedddd, and
VVVViiiissssiiiibbbbiiiilllliiiittttyyyyFFFFuuuullllllllyyyyOOOObbbbssssccccuuuurrrreeeedddd is substituted.
%%%%tttt The _t_i_m_e field from the event. Valid only for events that contain a
_t_i_m_e field.
%%%%wwww The _w_i_d_t_h field from the event. Valid only for CCCCoooonnnnffffiiiigggguuuurrrreeee, EEEExxxxppppoooosssseeee,
and GGGGrrrraaaapppphhhhiiiiccccssssEEEExxxxppppoooosssseeee events.
%%%%xxxx The _x field from the event. Valid only for events containing an _x
field.
%%%%yyyy The _y field from the event. Valid only for events containing a _y
field.
%%%%AAAA Substitutes the ASCII character corresponding to the event, or the
empty string if the event doesn't correspond to an ASCII character
(e.g. the shift key was pressed). XXXXLLLLooooooookkkkuuuuppppSSSSttttrrrriiiinnnngggg does all the work
of translating from the event to an ASCII character. Valid only for
KKKKeeeeyyyyPPPPrrrreeeessssssss and KKKKeeeeyyyyRRRReeeelllleeeeaaaasssseeee events.
%%%%BBBB The _b_o_r_d_e_r__w_i_d_t_h field from the event. Valid only for CCCCoooonnnnffffiiiigggguuuurrrreeee
events.
%%%%EEEE The _s_e_n_d__e_v_e_n_t field from the event. Valid for all event types.
%%%%KKKK The keysym corresponding to the event, substituted as a textual
string. Valid only for KKKKeeeeyyyyPPPPrrrreeeessssssss and KKKKeeeeyyyyRRRReeeelllleeeeaaaasssseeee events.
%%%%NNNN The keysym corresponding to the event, substituted as a decimal |
number. Valid only for KKKKeeeeyyyyPPPPrrrreeeessssssss and KKKKeeeeyyyyRRRReeeelllleeeeaaaasssseeee events.
%%%%RRRR The _r_o_o_t window identifier from the event. Valid only for events
containing a _r_o_o_t field.
%%%%SSSS The _s_u_b_w_i_n_d_o_w window identifier from the event, formatted as a |
hexadecimal number. Valid only for events containing a _s_u_b_w_i_n_d_o_w
field.
%%%%TTTT The _t_y_p_e field from the event. Valid for all event types.
%%%%WWWW The path name of the window to which the event was reported (the
_w_i_n_d_o_w field from the event). Valid for all event types.
%%%%XXXX The _x__r_o_o_t field from the event. If a virtual-root window manager |
is being used then the substituted value is the corresponding x- |
coordinate in the virtual root. Valid only for BBBBuuuuttttttttoooonnnnPPPPrrrreeeessssssss,
BBBBuuuuttttttttoooonnnnRRRReeeelllleeeeaaaasssseeee, KKKKeeeeyyyyPPPPrrrreeeessssssss, KKKKeeeeyyyyRRRReeeelllleeeeaaaasssseeee, and MMMMoooottttiiiioooonnnn events.
When a _s_e_q_u_e_n_c_e specified in a bbbbiiiinnnndddd command contains more than one event
pattern, then its script is executed whenever the recent events (leading
up to and including the current event) match the given sequence. This
means, for example, that if button 1 is clicked repeatedly the sequence
<<<<DDDDoooouuuubbbblllleeee----BBBBuuuuttttttttoooonnnnPPPPrrrreeeessssssss----1111>>>> will match each button press but the first. If |
extraneous events that would prevent a match occur in the middle of an |
event sequence then the extraneous events are ignored unless they are |
KKKKeeeeyyyyPPPPrrrreeeessssssss or BBBBuuuuttttttttoooonnnnPPPPrrrreeeessssssss events. For example, <<<<DDDDoooouuuubbbblllleeee----BBBBuuuuttttttttoooonnnnPPPPrrrreeeessssssss----1111>>>> will|
match a sequence of presses of button 1, even though there will be |
BBBBuuuuttttttttoooonnnnRRRReeeelllleeeeaaaasssseeee events (and possibly MMMMoooottttiiiioooonnnn events) between the BBBBuuuuttttttttoooonnnnPPPPrrrreeeessssssss|
events. Furthermore, a KKKKeeeeyyyyPPPPrrrreeeessssssss event may be preceded by any number of |
other KKKKeeeeyyyyPPPPrrrreeeessssssss events for modifier keys without the modifier keys |
preventing a match. For example, the event sequence aaaaBBBB will match a |
press of the aaaa key, a release of the aaaa key, a press of the SSSShhhhiiiifffftttt key, and|
a press of the bbbb key: the press of SSSShhhhiiiifffftttt is ignored because it is a |
modifier key. Finally, if several MMMMoooottttiiiioooonnnn events occur in a row, only the
last one is used for purposes of matching binding sequences.
EEEERRRRRRRROOOORRRRSSSS
If an error occurs in executing the script for a binding then the ttttkkkkeeeerrrrrrrroooorrrr
mechanism is used to report the error. The ttttkkkkeeeerrrrrrrroooorrrr command will be |
executed at global level (outside the context of any Tcl procedure).